import menus from "@/router/page";
import router from "./index";
const dynamicRouter = ()=>{
    menus.forEach(item=>{
        router.addRoute("Index",item)
    });
    router.addRoute({
        path:"/:path(.*)+",
        redirect:"/404"
    })
}
dynamicRouter()